package com.usian.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class BrithdayTask {


//    @Scheduled(cron = "0 0 0 * * ? *")
//    @Scheduled(cron = "0/1 * * * * ?")
    public void brithday(){
        //从数据库查询是否是当天的生日
        // 给用户发送福利或者祝福
        System.out.println("祝你生日快乐，发送100减50的优惠券！！");

    }

}
